package com.van.service.sys.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.van.entity.sys.UpFile;
import com.van.mapper.sys.UpFileMapper;
import com.van.service.sys.UpFileService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author VanKa qq:2395073039
 * @date 2021/6/28 10:11
 */
@Service
public class UpFileServiceImpl extends ServiceImpl<UpFileMapper, UpFile> implements UpFileService {
    @Override
    public UpFile getOneData(QueryWrapper<UpFile> queryWrapper) {
        List<UpFile> list = list(queryWrapper);
        if (list.size() == 1) {
            return list.get(0);
        } else {
            return null;
        }
    }
}
